﻿using Microsoft.EntityFrameworkCore;
using MiniOrderSystem.Data.Model;

namespace MiniOrderSystem.Data.Context
{
    public class OrderDbContext: DbContext
    {
        public OrderDbContext(DbContextOptions<OrderDbContext> options) : base(options)
        {
        }
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            base.OnConfiguring(optionsBuilder);
        }


        public DbSet<Book> Book { get; set; }
        public DbSet<Commodity> Commodity { get; set; }
        public DbSet<CommodityType> CommodityType { get; set; }
        public DbSet<Order> Order { get; set; }
        public DbSet<OrderItem> OrderItem { get; set; }
        public DbSet<User> User { get; set; }
    }
}